<?php

namespace app\common\command;

use app\common\service\haikang\HaikangService;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**
 * 把海康网络图下载到本地
 */
class SetServerImgUrl extends Command
{
    protected function configure()
    {
        $this->setName('SetServerImgUrl')
            ->setDescription('SetServerImgUrl');
    }

    protected function execute(Input $input, Output $output)
    {
        HaikangService::setServerImgUrl();
        $output->writeln("OK".date('Y-m-d H:i:s'));
    }
}